/* 全局样式 */
body {
    font-family: 'Microsoft YaHei', sans-serif; /* 使用微软雅黑字体 */
    margin: 0;
    padding: 0;
    background-color: #f8faff; 
    color: #2a4365; /* 深蓝色文字 */
    line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
    background-color: #ffffff; /* 白色导航栏背景 */
    padding: 15px 0;
    box-shadow: 0 2px 10px rgba(1, 48, 114, 0.5); /* 浅蓝色阴影 */
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e2e8f0; /* 浅灰色边框 */
}

.nav-container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap; 
    gap: 10px;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #3182ce; 
    text-decoration: none;
}

.nav-links{
    display: flex;
    flex-wrap: wrap; /* 允许导航项换行 */
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: #2c5282; /* 深蓝色链接 */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 6px;
}

.nav-links a:hover {
    color: #ffffff; /* 悬停时白色 */
    background-color: #4299e1; /* 亮蓝色背景 */
}
.nav-links a.active {
    color: #ffffff;
    background-color: #4299e1;
}

/* 主要内容区域 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0px auto;
    padding: 20px;
}

/* 内容区块通用样式 */
.content-block {
    background-color: #ffffff; /* 白色背景 */
    border: 1px solid #bee3f8; /* 浅蓝色边框 */
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(66, 153, 225, 0.1); 
    transition: all 0.3s ease;
}

.content-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(66, 153, 225, 0.5); 
}

.section-title {
    color: #3182ce; /* 中等蓝色标题 */
    border-bottom: 2px solid #bee3f8; /* 浅蓝色下划线 */
    padding-bottom: 10px;
    margin-top: 0;
    font-size: 22px;
}

/* 轮播图样式 */
.carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    border-radius: 12px;
    border: 1px solid #e2e8f0; /* 浅灰色边框 */
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    color: #3182ce;
    border: none;
    padding: 12px 16px;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.carousel-control:hover {
    background-color: #3182ce;
    color: white;
}

.carousel-control.prev {
    left: 20px;
}

.carousel-control.next {
    right: 20px;
}

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(200, 220, 240, 0.8); /* 半透明白蓝色 */
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background-color: #3182ce; /* 中等蓝色 */
    transform: scale(1.2);
}

/* 功能网格布局 */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 功能卡片样式 */
.feature-card {
    padding: 20px;
    border: 1px solid #bee3f8; /* 浅蓝色边框 */
    border-radius: 8px;
    background-color: #f7fafc;
    transition: all 0.3s ease;
}

.feature-card:hover {
    background-color: #ebf8ff;
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.1);
}

.feature-title {
    color: #3182ce; /* 中等蓝色标题 */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.feature-card p {
    color: #4a5568; /* 深灰色文字 */
    margin-bottom: 0;
}

/* 特色高亮模块 */
.feature-highlight {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background-color: #f0f7ff; /* 浅蓝色背景 */
    transition: all 0.3s ease;
}

.feature-highlight:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(66, 153, 225, 0.15);
}

.feature-icon {
    font-size: 40px;
    color: #3182ce; /* 中等蓝色 */
    margin-bottom: 10px;
}

.feature-highlight h3 {
    color: #2b6cb0; /* 深蓝色 */
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-highlight p {
    color: #4a5568; /* 深灰色文字 */
    margin-bottom: 0;
}

/* 页脚样式 */
footer {
    background-color: #ffffff;
    color: #4a5568;
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
}



/* gallery.html */
.gallery-intro {
    color: #4a5568;
    margin-bottom: 0;
}

/* 视频容器样式 */
.video-container {
    text-align: center;
}

.video-container video {
    width: 80%;
    border-radius: 10px;
}



/* 照片墙样式 */
.photo-wall {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.photo-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(66, 153, 225, 0.1);
    transition: all 0.3s ease;
    aspect-ratio: 1/1;
}

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(66, 153, 225, 0.2);
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(49, 130, 206, 0.8);
    color: white;
    padding: 12px 15px;
    font-size: 16px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.photo-item:hover .photo-caption {
    transform: translateY(0);
}

/* team.html */
/* 个人信息区块 */
.profile {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.profile-image {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #bee3f8;
}

.profile-info h3 {
    color: #2b6cb0;
    font-size: 28px;
}

.profile-subtitle {
    color: #4a5568;
    font-size: 18px;
}

.contact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

/* 教育背景 */
.education {
    padding: 0 20px;
}

.education h3 {
    color: #3182ce;
    margin-bottom: 5px;
}

.education-period {
    color: #718096;
    font-style: italic;
    margin-bottom: 10px;
}

.education-major {
    font-weight: 500;
    margin-bottom: 15px;
}

.education-details h4 {
    color: #4a5568;
    margin: 15px 0 10px 0;
}

.course-list {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.gpa {
    font-weight: 500;
}

.gpa span {
    color: #3182ce;
    font-weight: bold;
}

/* 项目经验 */
.project-card {
    margin-bottom: 25px;
    padding: 20px;
    background-color: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #3182ce;
    transition: all 0.3s ease;
}

.project-card:hover {
    background-color: #ebf8ff;
    transform: translateX(5px);
}

.project-card h3 {
    color: #2b6cb0;
    margin-top: 0;
    margin-bottom: 5px;
}

.project-period {
    color: #718096;
    font-size: 14px;
    margin-bottom: 10px;
}

.project-details {
    padding-left: 20px;
}

.project-details li {
    list-style: none;
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.project-details li::before {
    content: "▹";
    color: #3182ce;
    position: absolute;
    left: 0;
}

/* 技能 */
.skills-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-category {
    padding: 15px;
    background-color: #f7fafc;
    border-radius: 8px;
}

.skill-category h3 {
    color: #3182ce;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 18px;
}

.skill-list {
    padding-left: 0;
}

.skill-list li {
    list-style: none;
    margin-bottom: 10px;
    display: flex;
    justify-content: space-between;
}

.skill-level {
    color: #ffffff;
    background-color: #4299e1;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

/* 荣誉与证书 */
.awards-list {
    padding-left: 0;
}

.awards-list li {
    list-style: none;
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    margin-bottom: 8px;
    background-color: #f7fafc;
    border-radius: 6px;
}

.award-name {
    font-weight: 500;
}

.award-date {
    color: #718096;
    font-size: 14px;
}

/* 社团与活动 */
.activity-card {
    margin-bottom: 20px;
    padding: 15px;
    background-color: #f7fafc;
    border-radius: 8px;
    border-left: 4px solid #4299e1;
}

.activity-card h3 {
    color: #2b6cb0;
    margin-top: 0;
    margin-bottom: 5px;
}

.activity-period {
    color: #718096;
    font-size: 14px;
    margin-bottom: 10px;
}

.activity-details {
    padding-left: 20px;
}

.activity-details li {
    margin-bottom: 8px;
    position: relative;
    padding-left: 15px;
}

.activity-details li::before {
    content: "▹";
    color: #4299e1;
    position: absolute;
    left: 0;
}

/* 页脚样式 */
footer {
    background-color: #ffffff;
    color: #4a5568;
    text-align: center;
    padding: 25px 0;
    margin-top: 50px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
}

.social-links {
    margin-top: 15px;
}

.social-icon {
    color: #3182ce;
    text-decoration: none;
    margin: 0 10px;
    transition: all 0.3s;
}

.social-icon:hover {
    color: #2b6cb0;
    text-decoration: underline;
}